home *** CD-ROM | disk | FTP | other *** search
- Atari ST VT52 Emulator ( Escape Codes )
-
- The Atari VT52 Emulator uses a variety of Cursor Controls and Text Commands.
- These Commands can be accessed using the PRINT ESCAPE Sequence.
- Some of these Commands may be useful, some may not.
-
- Below is a Listing of all of the Escape Commands and what their Function is.
-
- Jim Luczak 02/27/87
-
- *****************************************************************************
-
- CODE FUNCTION GFA BASIC PRINT SEQUENCE
-
- -----------------------------------------------------------------------------
-
- UPPER CASE
-
- ESC A CURSOR UP Print Chr$(27);"A";
-
- Moves the Cursor Up one line. If the Cursor was already on the Top
- Line, nothing happens.
-
-
- ESC B CURSOR DOWN Print Chr$(27);"B";
-
- Positions the Cursor one Line Down. If the Cursor is already on the
- bottom line,nothiong happens.
-
-
- ESC C CURSOR RIGHT Print Chr$(27);"C";
-
- Moves the Cursor one Column to the Right.
-
-
- ESC D CURSOR LEFT Print Chr$(27);"D";
-
- Moves the Cursor one Column to the Left. If the Cursor is already
- in the First Column, nothing happens.
-
-
- ESC E CLEAR HOME Print Chr$(27);"E";
-
- Clears the Entire screen, and moves the Cursor to the Upper Left
- corner of the screen.
-
-
- ESC H CURSOR HOME Print Chr$(27);"H";
-
- Places the Cursor in the Upper Left cornor of the screen without
- erasing the screen.
-
-
- ESC I CURSOR UP Print Chr$(27);"I";
-
- Same as ESC A except that if the Cursor is already at the Top of
- the screen, a Blank Line is inserted, and the remainder of the screen
- is scrolled down one line. The Column Position of the Cursor remains
- Unchanged.
-
-
-
-
-
-
-
-
- ESC J CLEAR BELOW CURSOR Print Chr$(27);"J";
-
- Clears the screen Below the Cursor Position. The Cursor Position
- is not changed.
-
-
- ESC K CLEAR REMAINDER OF LINE Print Chr$(27);"K";
-
- Clears from the Cursor Position to the end of the line that the Cursor
- is in. The Cursor Position is cleared, however the Cursor Position
- is not changed.
-
-
- ESC L INSERT LINE Print Chr$(27);"L";
-
- Inserts a Blank Line at the Cursor Position. The remainder of the
- screen is scrolled Down one Line. The Cursor is placed at the start
- of the new line.
-
-
- ESC M DELETE LINE Print Chr$(27);"M";
-
- Clears the Line at the Cursor Position. The Remainder of the screen
- is scrolled Up one Line. The Cursor is placed at the start of the
- line that filled the Deleted line.
-
-
- ESC Y POSITION CURSOR Print Chr$(27);"Y";Chr$(32+LINE);Chr$(32+COLUMN);
-
- Positions the Cursor at any location on the screen. The Cursor LINE
- and COLUMN must be given in the Order shown above. 32 is an Offset
- that is required.
- Lines and Columns are counted Starting with 0.
-
- EXAMPLE: To set the Cursor to Line 5 Column 48 execute the following
- PRINT Sequence.
-
- Print Chr$(27);"Y";Chr$(32+5);Chr$(32+48);
-
-
-
- Lower Case
-
-
-
- ESC b SELECTS TEXT COLOR Print Chr$(27);"b";Chr$( COLOR # )
-
- Sets Character Color for further output.
-
- Monochrome Color # 0 - 1
- Medium Resolution Color # 0 - 3
- Low Resolution Color # 0 - 15
-
-
- ESC c SELECTS TEXT BACKGROUND COLOR Print Chr$(27);"c";Chr$( Bck Color # )
-
- Sets Text Background Color for further output
-
- Monochrome Bck Color # 0 - 1
- Medium Resolution Bck Color # 0 - 3
- Low Resolution Bck Color 0 - 15
-
-
-
-
-
-
-
-
-
- ESC d CLEAR SCREEN TO CURSOR POSITION Print Chr$(27);"d";
-
- Clears the screen from the Top to the Cursor Position ( Inclusive ).
- The Cursor Position is not changed.
-
-
- ESC e ENABLE CURSOR Print Chr$(27);"e";
-
- Makes the Cursor Visiable. ( Turns the Cursor ON )
-
- ( Default - Cursor Disabled )
-
-
- ESC f DISABLE CURSOR Print Chr$(27);"f";
-
- Makes the Cursor Invisiable ( Turns the Cursor OFF )
-
- ( Default - Cursor Disabled )
-
-
- ESC j SAVE CURSOR POSITION Print Chr$(27);"j";
-
- Saves the Current Cursor Position.
-
-
- ESC k SET CURSOR TO SAVED POSITION Print Chr$(27);"k";
-
- Sets the Cursor to the Position Saved with the ESC j Sequence.
-
-
- ESC l CLEAR LINE Print Chr$(27);"l";
-
- Clears the line at the Current Cursor Position. The Cursor is then
- located at the start of the cleared line.
-
-
- ESC o CLEAR FROM START Print Chr$(27);"o";
-
- Clears a Line from the Start of the Line to the Cursor Position
- ( Inclusive ). The Cursor Position is Unchanged.
-
-
- ESC p SET INVERSE MODE ON Print Chr$(27);"p";
-
- Enables the Inverse Text Mode for further output. Text and
- Text Background Colors are exchanged.
-
-
- ESC q SET INVERSE MODE OFF Print Chr$(27);"q";
-
- Disables the Inverse Text Mode for further output.
-
-
-
-
-
-
-
-
-
-
-
- ESC v AUTOMATIC OVERFLOW ON Print Chr$(27);"v";
-
- After the execution of this sequence, any output beyond the
- End Of Line, will automatically start a New Line.
-
- ( Default - OverFlow ON )
-
-
- ESC w AUTOMATIC OVERFLOW OFF Print Chr$(27);"w";
-
- Deactivates the above Sequence. Ant output beyond the End Of Line,
- will result in all the following Chaaracters to appear in the Last
- Column.
-
- ( Default - OverFlow ON )
-
- -----------------------------------------------------------------------------
-